import request from '@/utils/request';


// 查询设备供应商列表
export function listEquipmentSupplier(params) {
  return request({
    url: '/operation/web/operationEquipmentSupplier/list',
    method: 'get',
    params: params
  })
}

// 获取设备供应商详细信息
export function getEquipmentSupplier(supplierId) {
  return request({
    url: `/operation/web/operationEquipmentSupplier/${supplierId}`,
    method: 'get'
  })
}

// 新增设备供应商
export function addEquipmentSupplier(data) {
  return request({
    url: '/operation/web/operationEquipmentSupplier',
    method: 'post',
    data: data
  })
}

// 修改设备供应商
export function updateEquipmentSupplier(data) {
  return request({
    url: '/operation/web/operationEquipmentSupplier',
    method: 'put',
    data: data
  })
}

// 删除设备供应商
export function deleteEquipmentSupplier(supplierIds) {
  return request({
    url: `/operation/web/operationEquipmentSupplier/${supplierIds}`,
    method: 'delete'
  })
}